Expected Values for Cache Miss Rates for a Single Trace (Technical Summary)
نویسنده
چکیده
The standard trace-driven cache simulation evaluates the miss rate of cache C on an address trace T for program P running on input data I with object-code address map M for P. We note that the measured miss rate depends significantly on the address mapping M set arbitrarily by the compiler and linker. In this paper, we remove the effect of the address-mapping on the miss rate by analyzing a symbolic trace T of basic blocks. By assuming each basic block has an equal probability of ending up anywhere in the cache,'we determine the average miss rate over all possible address mappings. We present the gap model for predicting the mean and variance of the miss rate for direct-mapped caches. Our model also predicts how an intervening trace, such as an operating system call or a task switch, will affect the miss rate. For fully-associative caches, we give the expected number of misses for different working set sizes. In particular, for a working set of size w, and a fully-associative cache of size L, the expected number of misses until the working set is resident is = L ln(L/L w ) for w < L. We present a metric for estimating the interference between two parts of a program, which is important in choosing a address mapping that minimizes cache conflicts. Finally, we present a method to compactly summarize a trace that allows accurate miss rate prediction for direct-mapped caches.
منابع مشابه
Trace Sampling for Desktop Applications on Windows NT
This paper examines trace sampling for a suite of desktop application traces on Windows NT. This paper makes two contributions: we compare the accuracy of several sampling techniques to determine cache miss rates for these workloads, and we present a victim cache architecture study that demonstrates that sampling can be used to drive such studies. Of the sampling techniques used for the cache m...
متن کاملImproved Cache Trace Attack on AES and CLEFIA by Considering Cache Miss and S-box Misalignment
This paper presents an improved Cache trace attack on AES and CLEFIA by considering Cache miss trace information and S-box misalignment. In 2006, O. Acıiçmez et al. present a trace driven Cache attack on AES first two rounds, and point out that if the Cache element number of the Cache block is 16, at most 48-bit of AES key can be obtained in the first round attack. Their attack is based on the ...
متن کاملCache Modeling and Optimization using Miniature Simulations
Recent approximation algorithms (e.g., CounterStacks, SHARDS and AET) make lightweight, continuouslyupdated miss ratio curves (MRCs) practical for online modeling and control of LRU caches. For more complex cache-replacement policies, scaled-down simulation, introduced with SHARDS, offers a general method for emulating a given cache size by using a miniature cache processing a small spatially-h...
متن کاملOn the Design and Implementation of a Cache-aware Soft Real-time Scheduler for Multicore Platforms
JOHN MICHAEL CALANDRINO: On the Design and Implementation of a Cache-Aware Soft Real-Time Scheduler for Multicore Platforms (Under the direction of James H. Anderson) Real-time systems are those for which timing constraints must be satisfied. In this dissertation, research on multiprocessor real-time systems is extended to support multicore platforms, which contain multiple processing cores on ...
متن کاملIncomplete Trace Data and Trace Driven Simulation
| We illustrate the sensitivity of trace driven simulation results to the completeness of the input trace data. This is done by comparing cache simulation results obtained using traces similar to many found in the published literature with those obtained using a hardware monitor which we have developed. Cache miss rates from single process traces without operating system references are shown to...
متن کامل